<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html><head><title>QX11Info Class Reference</title><style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }
td.postheader { font-family: sans-serif }
tr.address { font-family: sans-serif }
body { background: #ffffff; color: black; }
</style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></td><td width="1">&#160;&#160;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&#160;&#183; <a href="classes.html"><font color="#004faf">All Classes</font></a>&#160;&#183; <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QX11Info Class Reference<br /><sup><sup>[<a href="qtgui.html">QtGui</a> module]</sup></sup></h1><p>The QX11Info class provides information about the X display
configuration. <a href="#details">More...</a></p>

<h3>Methods</h3><ul><li><div class="fn" /><b><a href="qx11info.html#QX11Info">__init__</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qx11info.html#QX11Info-2">__init__</a></b> (<i>self</i>, QX11Info&#160;<i>other</i>)</li><li><div class="fn" />int <b><a href="qx11info.html#cells">cells</a></b> (<i>self</i>)</li><li><div class="fn" />int <b><a href="qx11info.html#colormap">colormap</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qx11info.html#defaultColormap">defaultColormap</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qx11info.html#defaultVisual">defaultVisual</a></b> (<i>self</i>)</li><li><div class="fn" />int <b><a href="qx11info.html#depth">depth</a></b> (<i>self</i>)</li><li><div class="fn" />int <b><a href="qx11info.html#screen">screen</a></b> (<i>self</i>)</li><li><div class="fn" />sip.voidptr <b><a href="qx11info.html#visual">visual</a></b> (<i>self</i>)</li></ul><h3>Static Methods</h3><ul><li><div class="fn" />int <b><a href="qx11info.html#appCells">appCells</a></b> (int&#160;<i>screen</i>&#160;=&#160;-1)</li><li><div class="fn" />str <b><a href="qx11info.html#appClass">appClass</a></b> ()</li><li><div class="fn" />int <b><a href="qx11info.html#appColormap">appColormap</a></b> (int&#160;<i>screen</i>&#160;=&#160;-1)</li><li><div class="fn" />bool <b><a href="qx11info.html#appDefaultColormap">appDefaultColormap</a></b> (int&#160;<i>screen</i>&#160;=&#160;-1)</li><li><div class="fn" />bool <b><a href="qx11info.html#appDefaultVisual">appDefaultVisual</a></b> (int&#160;<i>screen</i>&#160;=&#160;-1)</li><li><div class="fn" />int <b><a href="qx11info.html#appDepth">appDepth</a></b> (int&#160;<i>screen</i>&#160;=&#160;-1)</li><li><div class="fn" />int <b><a href="qx11info.html#appDpiX">appDpiX</a></b> (int&#160;<i>screen</i>&#160;=&#160;-1)</li><li><div class="fn" />int <b><a href="qx11info.html#appDpiY">appDpiY</a></b> (int&#160;<i>screen</i>&#160;=&#160;-1)</li><li><div class="fn" />int <b><a href="qx11info.html#appRootWindow">appRootWindow</a></b> (int&#160;<i>screen</i>&#160;=&#160;-1)</li><li><div class="fn" />int <b><a href="qx11info.html#appScreen">appScreen</a></b> ()</li><li><div class="fn" />int <b><a href="qx11info.html#appTime">appTime</a></b> ()</li><li><div class="fn" />int <b><a href="qx11info.html#appUserTime">appUserTime</a></b> ()</li><li><div class="fn" />sip.voidptr <b><a href="qx11info.html#appVisual">appVisual</a></b> (int&#160;<i>screen</i>&#160;=&#160;-1)</li><li><div class="fn" />Display <b><a href="qx11info.html#display">display</a></b> ()</li><li><div class="fn" />bool <b><a href="qx11info.html#isCompositingManagerRunning">isCompositingManagerRunning</a></b> ()</li><li><div class="fn" /><b><a href="qx11info.html#setAppDpiX">setAppDpiX</a></b> (int&#160;<i>screen</i>, int&#160;<i>dpi</i>)</li><li><div class="fn" /><b><a href="qx11info.html#setAppDpiY">setAppDpiY</a></b> (int&#160;<i>screen</i>, int&#160;<i>dpi</i>)</li><li><div class="fn" /><b><a href="qx11info.html#setAppTime">setAppTime</a></b> (int&#160;<i>time</i>)</li><li><div class="fn" /><b><a href="qx11info.html#setAppUserTime">setAppUserTime</a></b> (int&#160;<i>time</i>)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QX11Info class provides information about the X display
configuration.</p>
<p>The class provides two APIs: a set of non-static functions that
provide information about a specific widget or pixmap, and a set of
static functions that provide the default information for the
application.</p>
<p><b>Warning:</b> This class is only available on X11. For
querying per-screen information in a portable way, use <a href="qdesktopwidget.html">QDesktopWidget</a>.</p>
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QX11Info" />QX11Info.__init__ (<i>self</i>)</h3><p>Constructs an empty <a href="qx11info.html">QX11Info</a>
object.</p>


<h3 class="fn"><a name="QX11Info-2" />QX11Info.__init__ (<i>self</i>, <a href="qx11info.html">QX11Info</a>&#160;<i>other</i>)</h3><p>Constructs a copy of <i>other</i>.</p>


<h3 class="fn"><a name="appCells" />int QX11Info.appCells (int&#160;<i>screen</i>&#160;=&#160;-1)</h3><p>Returns the number of cells used by the application on the given
<i>screen</i>.</p>
<p>The <i>screen</i> argument is an X screen number. Be aware that
if the user's system uses Xinerama (as opposed to traditional X11
multiscreen), there is only one X screen. Use <a href="qdesktopwidget.html">QDesktopWidget</a> to query for information
about Xinerama screens.</p>
<p><b>See also</b> <a href="qx11info.html#cells">cells</a>().</p>


<h3 class="fn"><a name="appClass" />str QX11Info.appClass ()</h3><p>Returns the X11 application class.</p>
<p><b>See also</b> <a href="qx11info.html#display">display</a>().</p>


<h3 class="fn"><a name="appColormap" />int QX11Info.appColormap (int&#160;<i>screen</i>&#160;=&#160;-1)</h3><p>Returns a handle for the application's color map on the given
<i>screen</i>.</p>
<p>The <i>screen</i> argument is an X screen number. Be aware that
if the user's system uses Xinerama (as opposed to traditional X11
multiscreen), there is only one X screen. Use <a href="qdesktopwidget.html">QDesktopWidget</a> to query for information
about Xinerama screens.</p>
<p><b>See also</b> <a href="qx11info.html#colormap">colormap</a>()
and <a href="qx11info.html#defaultColormap">defaultColormap</a>().</p>


<h3 class="fn"><a name="appDefaultColormap" />bool QX11Info.appDefaultColormap (int&#160;<i>screen</i>&#160;=&#160;-1)</h3><p>Returns true if the application has a default color map on the
given <i>screen</i>; otherwise returns false.</p>
<p>The <i>screen</i> argument is an X screen number. Be aware that
if the user's system uses Xinerama (as opposed to traditional X11
multiscreen), there is only one X screen. Use <a href="qdesktopwidget.html">QDesktopWidget</a> to query for information
about Xinerama screens.</p>


<h3 class="fn"><a name="appDefaultVisual" />bool QX11Info.appDefaultVisual (int&#160;<i>screen</i>&#160;=&#160;-1)</h3><p>Returns true if the application has a default visual on the
given <i>screen</i>; otherwise returns false.</p>
<p>The <i>screen</i> argument is an X screen number. Be aware that
if the user's system uses Xinerama (as opposed to traditional X11
multiscreen), there is only one X screen. Use <a href="qdesktopwidget.html">QDesktopWidget</a> to query for information
about Xinerama screens.</p>


<h3 class="fn"><a name="appDepth" />int QX11Info.appDepth (int&#160;<i>screen</i>&#160;=&#160;-1)</h3><p>Returns the color depth (bits per pixel) used by the application
on the given <i>screen</i>.</p>
<p>The <i>screen</i> argument is an X screen number. Be aware that
if the user's system uses Xinerama (as opposed to traditional X11
multiscreen), there is only one X screen. Use <a href="qdesktopwidget.html">QDesktopWidget</a> to query for information
about Xinerama screens.</p>
<p><b>See also</b> <a href="qx11info.html#depth">depth</a>().</p>


<h3 class="fn"><a name="appDpiX" />int QX11Info.appDpiX (int&#160;<i>screen</i>&#160;=&#160;-1)</h3><p>Returns the horizontal resolution of the given <i>screen</i> in
terms of the number of dots per inch.</p>
<p>The <i>screen</i> argument is an X screen number. Be aware that
if the user's system uses Xinerama (as opposed to traditional X11
multiscreen), there is only one X screen. Use <a href="qdesktopwidget.html">QDesktopWidget</a> to query for information
about Xinerama screens.</p>
<p><b>See also</b> <a href="qx11info.html#setAppDpiX">setAppDpiX</a>() and <a href="qx11info.html#appDpiY">appDpiY</a>().</p>


<h3 class="fn"><a name="appDpiY" />int QX11Info.appDpiY (int&#160;<i>screen</i>&#160;=&#160;-1)</h3><p>Returns the vertical resolution of the given <i>screen</i> in
terms of the number of dots per inch.</p>
<p>The <i>screen</i> argument is an X screen number. Be aware that
if the user's system uses Xinerama (as opposed to traditional X11
multiscreen), there is only one X screen. Use <a href="qdesktopwidget.html">QDesktopWidget</a> to query for information
about Xinerama screens.</p>
<p><b>See also</b> <a href="qx11info.html#setAppDpiY">setAppDpiY</a>() and <a href="qx11info.html#appDpiX">appDpiX</a>().</p>


<h3 class="fn"><a name="appRootWindow" />int QX11Info.appRootWindow (int&#160;<i>screen</i>&#160;=&#160;-1)</h3><p>Returns a handle for the applications root window on the given
<i>screen</i>.</p>
<p>The <i>screen</i> argument is an X screen number. Be aware that
if the user's system uses Xinerama (as opposed to traditional X11
multiscreen), there is only one X screen. Use <a href="qdesktopwidget.html">QDesktopWidget</a> to query for information
about Xinerama screens.</p>
<p><b>See also</b> <a href="qapplication.html#desktop">QApplication.desktop</a>().</p>


<h3 class="fn"><a name="appScreen" />int QX11Info.appScreen ()</h3><p>Returns the number of the screen where the application is being
displayed.</p>
<p><b>See also</b> <a href="qx11info.html#display">display</a>()
and <a href="qx11info.html#screen">screen</a>().</p>


<h3 class="fn"><a name="appTime" />int QX11Info.appTime ()</h3><p>Returns the X11 time.</p>
<p><b>See also</b> <a href="qx11info.html#setAppTime">setAppTime</a>() and <a href="qx11info.html#appUserTime">appUserTime</a>().</p>


<h3 class="fn"><a name="appUserTime" />int QX11Info.appUserTime ()</h3><p>Returns the X11 user time.</p>
<p><b>See also</b> <a href="qx11info.html#setAppUserTime">setAppUserTime</a>() and <a href="qx11info.html#appTime">appTime</a>().</p>


<h3 class="fn"><a name="appVisual" />sip.voidptr QX11Info.appVisual (int&#160;<i>screen</i>&#160;=&#160;-1)</h3><p>Returns the current visual used by the application on the given
<i>screen</i>.</p>
<p>The <i>screen</i> argument is an X screen number. Be aware that
if the user's system uses Xinerama (as opposed to traditional X11
multiscreen), there is only one X screen. Use <a href="qdesktopwidget.html">QDesktopWidget</a> to query for information
about Xinerama screens.</p>
<p><b>See also</b> <a href="qx11info.html#visual">visual</a>() and
<a href="qx11info.html#defaultVisual">defaultVisual</a>().</p>


<h3 class="fn"><a name="cells" />int QX11Info.cells (<i>self</i>)</h3><p>Returns the number of cells.</p>
<p><b>See also</b> <a href="qx11info.html#appCells">appCells</a>().</p>


<h3 class="fn"><a name="colormap" />int QX11Info.colormap (<i>self</i>)</h3><p>Returns a handle for the color map.</p>
<p><b>See also</b> <a href="qx11info.html#defaultColormap">defaultColormap</a>().</p>


<h3 class="fn"><a name="defaultColormap" />bool QX11Info.defaultColormap (<i>self</i>)</h3><p>Returns true if there is a default color map; otherwise returns
false.</p>
<p><b>See also</b> <a href="qx11info.html#colormap">colormap</a>().</p>


<h3 class="fn"><a name="defaultVisual" />bool QX11Info.defaultVisual (<i>self</i>)</h3><p>Returns true if there is a default visual; otherwise returns
false.</p>
<p><b>See also</b> <a href="qx11info.html#visual">visual</a>() and
<a href="qx11info.html#appVisual">appVisual</a>().</p>


<h3 class="fn"><a name="depth" />int QX11Info.depth (<i>self</i>)</h3><p>Returns the color depth (bits per pixel) of the X display.</p>
<p><b>See also</b> <a href="qx11info.html#appDepth">appDepth</a>().</p>


<h3 class="fn"><a name="display" />Display QX11Info.display ()</h3><p>Returns the default display for the application.</p>
<p><b>See also</b> <a href="qx11info.html#appScreen">appScreen</a>().</p>


<h3 class="fn"><a name="isCompositingManagerRunning" />bool QX11Info.isCompositingManagerRunning ()</h3><p>Returns true if there is a compositing manager running.</p>
<p>This function was introduced in Qt 4.4.</p>


<h3 class="fn"><a name="screen" />int QX11Info.screen (<i>self</i>)</h3><p>Returns the number of the screen currently in use.</p>
<p>The return value is an X screen number. Be aware that if the
user's system uses Xinerama (as opposed to traditional X11
multiscreen), there is only one X screen. Use <a href="qdesktopwidget.html">QDesktopWidget</a> to query for information
about Xinerama screens.</p>
<p><b>See also</b> <a href="qx11info.html#appScreen">appScreen</a>().</p>


<h3 class="fn"><a name="setAppDpiX" />QX11Info.setAppDpiX (int&#160;<i>screen</i>, int&#160;<i>dpi</i>)</h3><p>Sets the horizontal resolution of the given <i>screen</i> to the
number of dots per inch specified by <i>xdpi</i>.</p>
<p>The <i>screen</i> argument is an X screen number. Be aware that
if the user's system uses Xinerama (as opposed to traditional X11
multiscreen), there is only one X screen. Use <a href="qdesktopwidget.html">QDesktopWidget</a> to query for information
about Xinerama screens.</p>
<p><b>See also</b> <a href="qx11info.html#appDpiX">appDpiX</a>()
and <a href="qx11info.html#setAppDpiY">setAppDpiY</a>().</p>


<h3 class="fn"><a name="setAppDpiY" />QX11Info.setAppDpiY (int&#160;<i>screen</i>, int&#160;<i>dpi</i>)</h3><p>Sets the vertical resolution of the given <i>screen</i> to the
number of dots per inch specified by <i>ydpi</i>.</p>
<p>The <i>screen</i> argument is an X screen number. Be aware that
if the user's system uses Xinerama (as opposed to traditional X11
multiscreen), there is only one X screen. Use <a href="qdesktopwidget.html">QDesktopWidget</a> to query for information
about Xinerama screens.</p>
<p><b>See also</b> <a href="qx11info.html#appDpiY">appDpiY</a>()
and <a href="qx11info.html#setAppDpiX">setAppDpiX</a>().</p>


<h3 class="fn"><a name="setAppTime" />QX11Info.setAppTime (int&#160;<i>time</i>)</h3><p>Sets the X11 time to the value specified by <i>time</i>.</p>
<p><b>See also</b> <a href="qx11info.html#appTime">appTime</a>()
and <a href="qx11info.html#setAppUserTime">setAppUserTime</a>().</p>


<h3 class="fn"><a name="setAppUserTime" />QX11Info.setAppUserTime (int&#160;<i>time</i>)</h3><p>Sets the X11 user time as specified by <i>time</i>.</p>
<p><b>See also</b> <a href="qx11info.html#appUserTime">appUserTime</a>() and <a href="qx11info.html#setAppTime">setAppTime</a>().</p>


<h3 class="fn"><a name="visual" />sip.voidptr QX11Info.visual (<i>self</i>)</h3><p>Returns the current visual.</p>
<p><b>See also</b> <a href="qx11info.html#appVisual">appVisual</a>() and <a href="qx11info.html#defaultVisual">defaultVisual</a>().</p>


<address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt&#160;snapshot-4.9.5-9eb6aac99275 for X11</td><td align="center" width="50%">Copyright &#169; <a href="http://www.riverbankcomputing.com">Riverbank&#160;Computing&#160;Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2012</td><td align="right" width="25%">Qt&#160;4.8.3</td></tr></table></div></address></body></html>